package com.cskaoyan.market.admin.service;

import java.util.List;

import com.cskaoyan.market.db.domain.MarketCoupon;
import com.cskaoyan.market.db.domain.MarketCouponUser;

public interface MarketAdminCouponService {
    /**
     * 此方法通过优惠券 id 去获取拥有此优惠券的用户
     *
     * @param page
     * @param limit
     * @param couponId 优惠券 id
     * @param sort
     * @param order
     * @return java.util.List<com.cskaoyan.market.db.domain.MarketCouponUser>
     * @author BlackFlame33
     * @since 2023/03/22 12:02
     */
    List<MarketCouponUser> getUserListByCouponId(int page, int limit, Integer couponId, String sort, String order);

    MarketCoupon update(int days, boolean deleted, Double discount, int goodsType, List<Integer> goodsValue, int id,
        Integer limit, String min, String name, Integer status, String tag, Integer timeType, Integer total,
        Integer type, String updateTime);

    void delete(int days, boolean deleted, Double discount, int goodsType, List<Integer> goodsValue, int id,
        Integer limit, String min, String name, Integer status, String tag, Integer timeType, Integer total,
        Integer type, String updateTime);

    List<MarketCoupon> list(int page, int limit, String name, String type, String status, String sort, String order);
}